package vip.sunxy.aspectdemo.service.impl;

import org.springframework.stereotype.Service;
import vip.sunxy.aspectdemo.common.annotation.MyAspect;
import vip.sunxy.aspectdemo.model.Person;
import vip.sunxy.aspectdemo.service.HelloService;

/**
 * @author Aiguo
 */
@Service
public class HelloServiceImpl implements HelloService {

    @Override
    @MyAspect
    public Person sayHello1(String name) {
        Person person=new Person();
        person.setName(name);
        person.setAge(20);
        return person;
    }
}
